package com.smu.recognize.service;

import com.smu.recognize.model.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface UserService {
    //注册
    public boolean register(User user);
    //登录
    public User login(String userName,String password);
    //查询全部
    public List<User> selectAll();
    //用户信息完善
    public boolean update(User user);
    //移动端更新信息
    public boolean updateByMobile(User user);
    public int findIdByUserName(String userName);
    public String findNameByUser_id(int user_id);
    //查用户人脸特征
    public byte[] findFeatureByUser_id(int user_id);
    //查用户信息
    public User findUserById(int user_id);
    //删除一个用户
    public boolean deleteUser(int user_id);
    //更新用户状态
    public boolean updateUserStatus(int user_id, int status);
    public List<Integer> findUserID();
}
